<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>尚硅谷，欢迎你</h1>
测试REST风格：
<form action="/user" method="get">
    <input value="REST-GET 提交" type="submit">
</form>
<form action="/user" method="post">
    <input value="REST-POST 提交" type="submit">
</form>
<form action="/user" method="post">
    <input name="_method" type="hidden" value="PUT">
    <input name="_m" type="hidden" value="PUT">
    <input value="REST-PUT 提交" type="submit" >
</form>
<form action="/user" method="post">
    <input name="_method" type="hidden" value="DELETE">
    <input value="REST-DElETE 提交" type="submit">
</form>
<ul>
    <a href="car/3/owner/lisi?age=18&inters=basketball&inters=game">car/{id}/owner/{username}</a>
    <li>@PathVariable(路径变量)</li>
    <li>@RequestHeader(获取请求头)</li>
    <li>@RequestParam(获取请求参数)</li>
    <li>@CookieValue(获取cookie值)</li>
    <li>@RequestAttribute(获取request域属性)</li>
    <li>@RequestBody(获取请求体)</li>
    <li>@MatrixVariable(矩阵变量)</li>
    <br/>
    <form action="/save" method="post">
        测试@RequestBody获取数据<br>
        <input type="text" value="xing" name="name"><br>
        <input type="text" value="wqe@sina.com" name="email">
        <input type="submit" value="提交">
    </form>
    <a href="/cars/sell;low=34;brand=byd,audi,yd">@MatrixVariable(矩阵变量)</a><br>
    <a href="/cars/sell;low=34;brand=byd;brand=audi;brand=yd">@MatrixVariable(矩阵变量)</a><br>
    <a href="/boss/1;age=20/2;age=10">@MatrixVariable(矩阵变量)</a>
</ul>
</body>
</html>